package cc.cc4414.cc03.core.security;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.security.oauth2.provider.token.TokenStore;

/**
 * TokenStore配置
 * 
 * @author cc 2019年1月6日
 */
@Configuration
public class TokenStoreConfig {
	@Autowired
	private RedisConnectionFactory redisConnectionFactory;

	@Bean
	public TokenStore redisTokenStore() {
		return new MyRedisTokenStore(redisConnectionFactory);
	}
}
